{% extends "base_3col.html"%}
{% load i18n tagging_tags core %}
{% load static %}

{% block breadcrumbs %}
{{block.super}} &raquo; <a href="{% url ask_index %}">{{_("Question-Answer")}}</a>  
{% endblock %}

{% block jsblock %}
{% get_static_prefix as STATIC_PREFIX %}
<link href="{{ STATIC_PREFIX }}css/comments.css" rel="stylesheet" type="text/css">
<script  src="{{ STATIC_PREFIX }}js/voting.js" type="text/javascript"></script>
<script>
function qaccept(o){
	var cur = ''; var nex = ''; 
	if ($(o).hasClass('qaccept0')){cur = 'qaccept0';nex = 'qaccept1';
	}else{cur = 'qaccept1';	nex = 'qaccept0';}
    $.ajax({
        type: "POST",
        dataType: "json",
        url: $(o).attr('href'),
        success: function(json){
            if (json.success){
               $(o).fadeOut();
               $(o).removeClass(cur);
               $(o).addClass(nex);
               $(o).fadeIn();
            }
        }
    });
}
</script>
{% endblock %}

{% block title%}{{_("Question-Answer")}}{% endblock %}

{% block leftcol %}
{% include "ask/menu.html" %}

{% endblock %}

{% block rightcol %}

{% if author %}
{% tag_cloud_for_user ask.question author as tag_cloud with steps=5 min_count=1 %}
{% with "ask_questions_by_tag" as url_name %}
{% with "Question tags of %(username)s"|var_trans:author.username as cloud_title %}
{% include "tag-cloud.html" %}
{% endwith %}
{% endwith %}
{% else %}

{% tag_cloud_for_model ask.question as tag_cloud with steps=5 min_count=1 %}
{% with "ask_questions_by_tag" as url_name %}
{% with "Pingpong tags" as cloud_title %}
{% include "tag-cloud.html" %}
{% endwith %}
{% endwith %}

{% endif%}

{% endblock %}